import { _decorator, Component, Label } from "cc";
const { ccclass, property } = _decorator;

@ccclass("ScoreUI")
export class ScoreUI extends Component {
  @property(Label)
  scoreCountLabel: Label = null;

  onScoreChange(scoreCount: number) {
    this.scoreCountLabel.string = scoreCount.toString();
  }
}
